Skip to content

Conversation

@ozawau
Copy link

@ozawau ozawau commented Apr 18, 2025

Context

Implementation

Screenshots

before after

How to Test

Get in Touch


Important

Adds setup_ubuntu.sh script for automating development environment setup on Ubuntu, including language installations, tool configurations, and environment setup.

  • Script Addition:
    • Adds setup_ubuntu.sh to evals/scripts/ for setting up development environments on Ubuntu.
  • Environment Setup:
    • Installs system packages: curl, git, build-essential, pkg-config, libssl-dev.
    • Installs asdf for managing language versions and plugins for nodejs, python, golang, rust, java.
    • Installs pnpm and GitHub CLI.
    • Clones cte/evals repository if not present.
    • Copies .env.sample to .env if .env does not exist.
    • Creates and configures a database using pnpm.
  • User Interaction:
    • Prompts user to select languages to support, enter OpenRouter API key, and optionally start the evals web app.
    • Builds Roo Code extension if not present or if user opts to rebuild.

This description was created by Ellipsis for 6ff925c. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Apr 18, 2025

⚠️ No Changeset found

Latest commit: 6ff925c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Apr 18, 2025
@ozawau ozawau changed the title add evals/scripts/setup_ubuntu.sh draft: add evals/scripts/setup_ubuntu.sh Apr 18, 2025
@ozawau ozawau closed this Apr 18, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Apr 18, 2025
@dosubot dosubot bot added the enhancement New feature or request label Apr 18, 2025
echo -e " q) quit\n"
}

has_asdf_plugin() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is identical to the existing implementation. Consider reusing the existing function instead of duplicating it.

fi

if ! grep -q "OPENROUTER_API_KEY" .env; then
read -p "🔐 Enter your OpenRouter API key (sk-or-v1-...): " openrouter_api_key
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use secure input for sensitive API keys. Consider using read -s instead of read -p to hide the OpenRouter API key as it's being entered.

Suggested change
read -p "🔐 Enter your OpenRouter API key (sk-or-v1-...): " openrouter_api_key
read -s -p "🔐 Enter your OpenRouter API key (sk-or-v1-...): " openrouter_api_key

@@ -0,0 +1,316 @@
#!/usr/bin/env bash

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding strict bash options (e.g. set -euo pipefail) immediately after the shebang. This ensures that errors, unset variables, and pipeline failures stop the script early, reducing potential subtle bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant